mmo: Fix MSVC problems.
authoroliskoli <oliskoli>
Sat, 18 Oct 2008 22:22:51 +0000 (22:22 +0000)
committeroliskoli <oliskoli>
Sat, 18 Oct 2008 22:22:51 +0000 (22:22 +0000)
mmo.c

diff --git a/mmo.c b/mmo.c
index 5bbcfaded877204b0ccffd6a3a3f8f7c14bfe65f..9159291a3c1dc4073969ba9d458fc66b19d880a0 100644 (file)
--- a/mmo.c
+++ b/mmo.c
@@ -157,11 +157,11 @@ mmo_readstr(void)
 
 
 static int
-mmo_fillbuf2(void *buf, const gbsize_t bufsz, const int count, const int need_all)
+mmo_fillbuf2(void *buf, const gbsize_t bufsz, const gbsize_t count, const int need_all)
 {
-       int res;
+       gbsize_t res;
        
-       if (count > bufsz) fatal(MYNAME ": Internal error (bufsz too small)!\n");
+       if (count > (int)bufsz) fatal(MYNAME ": Internal error (bufsz too small)!\n");
        
        memset(buf, 0xFF, count);
        res = gbfread(buf, 1, count, fin);